class EventStatus < ActiveRecord::Base
  validates :alias, :uniqueness => true
  
  has_many :events
  
  def self.get(status)
    @status = EventStatus.where(:alias => status)
    @status.first
  end
  
end
